<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html class="no-js" lang="zxx">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Shop | eCommers</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/assets/img/icon/favicon.png">
    <jsp:include page="${pageContext.request.contextPath}/common/css.jsp"></jsp:include>
</head>
<body>
<jsp:include page="${pageContext.request.contextPath}/common/Header.jsp"></jsp:include>
<main>
    <!-- listing Area Start -->
    <div class="listing-area pt-50 pb-50">
        <div class="container">
            <div class="row">
                <div class="col-xl-3 col-lg-4 col-md-4">
                </div>

                <div class="col-xl-9 col-lg-8 col-md-8">
                    <div class="latest-items latest-items2">
                        <div class="row">
                            <c:forEach items="${productList}" var="product">
                            <div class="col-xl-4 col-lg-6 col-md-6 col-sm-6">
                                <div class="properties pb-30">
                                    <div class="properties-card">
                                        <div class="properties-img">
                                            <a href="${pageContext.request.contextPath}/product/showprodetails.do?productid=${product.productid}"><img src="${pageContext.request.contextPath}/assets/img/gallery/latest5.jpg" alt=""></a>
                                            <div class="socal_icon">
                                                <a href="${pageContext.request.contextPath}/product/addCart.do?productid=${product.productid}"><i class="ti-shopping-cart"></i></a>
                                                <a href="#"><i class="ti-heart"></i></a>
                                                <a href="#"><i class="ti-zoom-in"></i></a>
                                            </div>
                                        </div>
                                        <div class="properties-caption properties-caption2">
                                            <h3><a href="pro-details.html">${product.productName}</a></h3>
                                            <div class="properties-footer">
                                                <div class="price">
                                                    <span>$${product.price}</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            </c:forEach>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- listing-area Area End -->
</main>
<jsp:include page="${pageContext.request.contextPath}/common/Foot.jsp"></jsp:include>
<jsp:include page="${pageContext.request.contextPath}/common/js.jsp"></jsp:include>
</body>
</html>